package com.ssy.lingxi.order.model.dto;

import com.ssy.lingxi.order.utils.NumberUtil;

import java.io.Serializable;

/**
 * 查询供应商业务员用户Id返回DTO
 * @author 万宁
 * @version 2.0.0
 * @date 2022-01-06
 */
public class OrderSalesDTO implements Serializable {
    private static final long serialVersionUID = 3517930454094050663L;

    public OrderSalesDTO(Long buyerMemberId, Long buyerRoleId, Long vendorMemberId, Long vendorRoleId, Long vendorUserId) {
        this.buyerMemberId = buyerMemberId;
        this.buyerRoleId = buyerRoleId;
        this.vendorMemberId = vendorMemberId;
        this.vendorRoleId = vendorRoleId;
        this.vendorUserId = NumberUtil.isNullOrZero(vendorUserId) ? 0L : vendorUserId;
    }

    /**
     * 采购会员Id
     */
    private Long buyerMemberId;

    /**
     * 采购会员角色Id
     */
    private Long buyerRoleId;

    /**
     * 供应会员Id
     */
    private Long vendorMemberId;

    /**
     * 供应会员角色Id
     */
    private Long vendorRoleId;

    /**
     * 供应会员业务员用户Id，如没有返回Null
     */
    private Long vendorUserId;

    public Long getBuyerMemberId() {
        return buyerMemberId;
    }

    public void setBuyerMemberId(Long buyerMemberId) {
        this.buyerMemberId = buyerMemberId;
    }

    public Long getBuyerRoleId() {
        return buyerRoleId;
    }

    public void setBuyerRoleId(Long buyerRoleId) {
        this.buyerRoleId = buyerRoleId;
    }

    public Long getVendorMemberId() {
        return vendorMemberId;
    }

    public void setVendorMemberId(Long vendorMemberId) {
        this.vendorMemberId = vendorMemberId;
    }

    public Long getVendorRoleId() {
        return vendorRoleId;
    }

    public void setVendorRoleId(Long vendorRoleId) {
        this.vendorRoleId = vendorRoleId;
    }

    public Long getVendorUserId() {
        return vendorUserId;
    }

    public void setVendorUserId(Long vendorUserId) {
        this.vendorUserId = vendorUserId;
    }
}
